package com.zegome.game.gomestory.main.scene.play.board;

import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.zegome.game.gomestory.main.A;
import com.zegome.game.gomestory.main.D;

public class BoardImage {
	
	Board board;
	
	TextureRegion[] pika;
	TextureRegion bg;
	
	public void load(Board board, int level){		
		this.board = board;
		int chapter = board.screen.ctr.d.getChapter(level);
		load2(board, chapter);
	}
	public void load2(Board board, int chapter){		
		this.board = board;
		if(chapter>0){
			pika = board.screen.ctr.a.iconRegion[chapter];
			bg = board.screen.ctr.a.bgRegion[chapter];
		}
		else{
			pika = board.screen.ctr.a.iconRegion[0];		
			bg = board.screen.ctr.a.bgRegion[0];
		}
	}
	
	public void clear(){
		pika = null;
		bg = null;
	}	
}
